package com.zjpg.forum.services;

import com.zjpg.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {

    /**
     * 添加恢复帖子
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);

    /**
     * 根据帖子ID查询所有回复
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);

    /**
     * 根据帖子articleId和postUserId查询
     * @param id
     * @return
     */
    public ArticleReply selectById(Long id);


}
